
.page-card-container {
  display: flex;
  flex-wrap: wrap;
  //padding: 5px;
  align-content: flex-start;

  .page-card {
    /*width: 168px;
    height: 280px;*/
    margin: 5px;
    /*background: #FFF;*/
    position: relative;
    transition: all .3s;
    cursor: pointer;

    &.page-card-web {
      width: 346px;
    }

    .page-cover {
      width: 100%;
      height: 250px;
      background: #FFF;
      overflow: hidden;
      position: relative;
      border-radius: 3px;
      box-shadow: 5px 5px 5px #DDD;
      border-left: 1px solid #F5F5F5;
      border-top: 1px solid #F5F5F5;

      &:after {
        content: " ";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        border-radius: 3px;
        transition: background-color .2s ease-in-out;
      }

      > img {
        position: absolute;
        width: 100%;
        transition: all 1s;

        &.empty-cover {
          top: -100px;
          margin-top: 100px;
        }
      }
    }

    .page-info {
      display: flex;
      align-items: center;
      font-size: 12px;
      line-height: 20px;
      padding: 3px 0px;

      .page-type {
        width: 20px;
        height: 20px;
        font-size: 12px;
        background: #000;
        border-radius: 50%;
        color: #FFF;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        &:before {
          transform: scale(0.80);
        }

        &.page-type-design {
          background: #409EFF;
        }
        &.page-type-custom {
          background: #67C23A;
        }
        &.page-type-link {
          background: #909399;
        }
      }
      .page-title {
        color: #666;
        font-size: 12px;
        line-height: 24px;
        margin-left: 4px;
        color: rgba(30,32,35,.65);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    .page-code, .page-app {
      position: absolute;
      z-index: 100;
      left: 10px;
      bottom: 10px;
      line-height: 1.2;
      padding: 5px;
      font-size: 12px;
      color: #1c1f23;
      background: #FFF;
      border-radius: 5px;
      opacity: 0;
    }
    .page-app {
      bottom: 40px;
    }

    &:hover {
      .page-cover {

        &:after {
          background-color: rgba(28,31,35,.27);
        }
        > img {
          margin-top: 0px !important;
          transform: translateY(0px);
        }
      }

      .page-info {
        .page-type {
          box-shadow: 2px 2px 5px #AAA;
        }
      }
      .page-title {
        color: #333;
      }

      .page-card-action, .page-code, .page-app {
        opacity: .85;

        &:hover {
          opacity: 1;
        }
      }
    }
  }

}

.page-select-win {
  display: flex;
  position: relative;
  height: 100%;

  .page-card-action.selected {
    background: #409eff;
    color: #FFF;
    opacity: 1;
  }

  /*.m-table-container {
    width: 835px;
    flex: none;
  }*/

  &.page-select-pc {
    .m-table-container {
      width: 560px;
    }
  }
  &.page-select-bs {
    .m-table-container {
      width: 280px;
    }
  }

  &.page-select-h5 {
    .page-select-preview {
      width: 375px;
    }
  }
}

.page-select-preview {
  height: 100%;
  display: flex;
  flex-flow: column;
  /*flex: 1;*/
  position: relative;
  overflow: hidden;
  background: #F1F5F9;
  /*padding-bottom: 30px;*/

  .page-select-preview-body {
    flex: 1;
    overflow: auto;
    padding-bottom: 45px;
  }
  .page-select-preview-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    color: #999;
  }
  .page-select-preview-actions {
    padding: 5px;
    text-align: center;
    position: absolute;
    border: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    z-index: 2000;
  }
}

.page-select-item {
  position: relative;

  &:before, &:after {
    content: " ";
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    opacity: 0;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    cursor: pointer;
  }
  &:before {
    background: none;
    color: #FFF;
    z-index: 101;
    font-size: 14px;
  }

  &:hover {
    &:after, &:before {
      opacity: .5;
    }
  }

  &.active {
    &:before {
      opacity: 1;
      background: none;
      font-size: 20px;
    }
    &:after {
      opacity: 0.3
    }
  }
}

.van-tabs-thin {
  margin-left: -10px;
  margin-top: -7px;

  .van-tabs__wrap {
    height: 36px;

    .van-tab {
      font-size: 13px;
    }
  }
}

.el-tree-node.is-current:has(.builder-node-selected) {
  background: #DEF;
}

.pure-lack {
  &:not(:hover) {
    .el-input__wrapper {
      background: none;
      box-shadow: none;
    }
    .el-input-number__increase, .el-input-number__decrease {
      opacity: 0;
    }
  }
}
